<% if deploy.stage.jenkins_job_names? && deploy.jenkins_jobs.none? && deploy.active? %>
  <% deploy.stage.jenkins_job_names.to_s.split(/, ?/).map do |jenkins_job_name| %>
    <div class="alert alert-info">Jenkins build <%= jenkins_job_name %> for <%= deploy.stage.name %> will start after succeeded deploy. Reload this page after deploy is finished to get latest status.</div>
  <% end %>
<% end %>

<% deploy.jenkins_jobs.each do |jenkins_job| %>
  <%= jenkins_status_panel deploy, jenkins_job %>
<% end %>
